#ifndef DSPSIMULATOR_SINGLEREG_H
#define DSPSIMULATOR_SINGLEREG_H

#include "dspSimulator/operand/operand.h"

class SingleReg : public Operand {
private:
    RegKind m_reg;
public:
    explicit SingleReg(RegKind reg) :
            m_reg(reg), Operand(OperandKind::ONE_REG) {}

    ~SingleReg() override = default;

    RegKind getReg() const {
        return m_reg;
    }

    std::string toString() override{
        return RegNames[static_cast<u32>(m_reg)];
    }
};

#endif //DSPSIMULATOR_SINGLEREG_H
